var Event = {
	add : function(obj,type,fn) {
		if (window.attachEvent) {
			obj.attachEvent('on' + type, fn);
		}else {
			obj.addEventListener(type, fn, false);
		}
	},
	remove : function(obj,type,fn){
		if (window.detachEvent) {
			obj.detachEvent('on' + type, fn);
		}else {
			obj.removeEventListener(type, fn, false);
		}
	},
	getEvent : function(e) {
		return e || window.event;	
	},
	getTarget : function(e) {
		return e.target || e.srcElement;
	},
	stopProp : function(e) {
		if (e.stopPropagation){
			e.stopPropagation();
		}else {
			e.cancelBubble = true;
		}
	},
	prevDef : function(e) {
		if (e.preventDefault) {
			e.preventDefault()
		}else {
			e.returnValue = false;
		}
	},
	stopEvent : function(e) {
		this.stopProp(e);
		this.prevDef(e);
	}
}
